<html>
<head><meta charset="utf-8"><title>emit=mir · t-compiler/wg-mir-opt · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/index.html">t-compiler/wg-mir-opt</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/emit.3Dmir.html">emit=mir</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="188883195"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/emit%3Dmir/near/188883195" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/emit.3Dmir.html#188883195">(Feb 23 2020 at 20:28)</a>:</h4>
<p>is it not strange that emit=mir do not emit all functions that is emitted with  emit=llvm-ir?<br>
hard to see all changes that mir opt results in when not all functions can be found</p>



<a name="188883647"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/emit%3Dmir/near/188883647" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> andjo403 <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/emit.3Dmir.html#188883647">(Feb 23 2020 at 20:42)</a>:</h4>
<p>or maybe not all functions that is in the llvm-ir file is optimised by mir-opts</p>



<a name="188891261"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/emit%3Dmir/near/188891261" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/emit.3Dmir.html#188891261">(Feb 24 2020 at 00:38)</a>:</h4>
<p>MIR is before monomorphization or glue generation.</p>



<a name="188891266"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/emit%3Dmir/near/188891266" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/emit.3Dmir.html#188891266">(Feb 24 2020 at 00:39)</a>:</h4>
<p>It doesn't represent monomorphic functions and doesn’t attempt to represent the generated glue.</p>



<a name="188920222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/emit%3Dmir/near/188920222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/emit.3Dmir.html#188920222">(Feb 24 2020 at 12:17)</a>:</h4>
<p>there's also <a href="https://github.com/rust-lang/rust/issues/43620" target="_blank" title="https://github.com/rust-lang/rust/issues/43620">https://github.com/rust-lang/rust/issues/43620</a>, which might affect <code>--emit=mir</code> as well.<br>
and there is <a href="https://github.com/rust-lang/rust/issues/58102" target="_blank" title="https://github.com/rust-lang/rust/issues/58102">https://github.com/rust-lang/rust/issues/58102</a>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>